package com.epam.Fish;


public  abstract class  Fish {

    public Fish(String name, int size, double price){

        this.name = name;
        this.price = price;
        this.size = size;
    }

    private String name;
    private double price;
    protected int hunger = 10;
    private  int size;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        if(price > 0){
        this.price = price;
        }
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        if(size > 1){
        this.size = size;
        }
    }

    public int getHunger() {
        return hunger;
    }

    public abstract void eat();
    public abstract void swim();

}
